#include "Shm.hpp"
#include "NamedPipe.hpp"
int main()
{
    // 1.创建共享内存
    Shm shm(gpathname, gproj_id, Creater);
    char *shmaddr = (char *)shm.Addr();

    // 2. 创建管道
    NamedPipe fifo(comm_path, Creater);
    fifo.OpenForRead();

    while (true)
    {
        string temp;
        fifo.ReadNamedPipe(&temp);

        cout << "shm memory content: " << shmaddr << endl;
        // sleep(1);
    }

    // shm.DeBugShm();
    return 0;
}